package com.sanqi.weixin.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sanqi.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.sanqi.common.core.domain.BaseEntity;

/**
 * 群发任务对象 wx_task
 * 
 * @author ruoyi
 * @date 2025-09-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("wx_task")
public class WxTask extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /** 编码 */
    @Excel(name = "编码")
    @TableField(value="task_no")
    private String taskNo;

    /** 名称 */
    @Excel(name = "名称")
    @TableField(value="task_name")
    private String taskName;

    /** 每天执行时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "每天执行时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value="task_time")
    private Date taskTime;

    /** 发送群组的chatId */
    @Excel(name = "发送群组的chatId")
    @TableField(value="chat_id")
    private String chatId;

    /** 状态 */
    @Excel(name = "状态")
    @TableField(value="task_status")
    private String taskStatus;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setTaskNo(String taskNo) 
    {
        this.taskNo = taskNo;
    }

    public String getTaskNo() 
    {
        return taskNo;
    }

    public void setTaskName(String taskName) 
    {
        this.taskName = taskName;
    }

    public String getTaskName() 
    {
        return taskName;
    }

    public void setTaskTime(Date taskTime) 
    {
        this.taskTime = taskTime;
    }

    public Date getTaskTime() 
    {
        return taskTime;
    }

    public void setChatId(String chatId) 
    {
        this.chatId = chatId;
    }

    public String getChatId() 
    {
        return chatId;
    }

    public void setTaskStatus(String taskStatus) 
    {
        this.taskStatus = taskStatus;
    }

    public String getTaskStatus() 
    {
        return taskStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .append("taskNo", getTaskNo())
            .append("taskName", getTaskName())
            .append("taskTime", getTaskTime())
            .append("chatId", getChatId())
            .append("taskStatus", getTaskStatus())
            .toString();
    }
}
